package com.milotnt.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.milotnt.form.MemberQueryForm;
import com.milotnt.pojo.MemberEntity;
import org.springframework.ui.Model;

import java.util.List;

public interface MemberService extends IService<MemberEntity> {

    //查询会员信息
    List<MemberEntity> findAll();

    //新增会员信息
    Boolean insertMember(MemberEntity member);

    //根据会员账号修改会员信息
    Boolean updateMemberByMemberAccount(MemberEntity member, Model model);

    //查询会员账号密码（登录）
    MemberEntity userLogin(MemberEntity member);
    //Member selectByAccountAndPassword(Member member);

    //根据会员账号删除会员信息
    Boolean deleteByMemberAccount(Long memberAccount);

    //查询会员数
    Integer selectTotalCount();

    //根据会员账号或会员姓名查询会员
    List<MemberEntity> selectByMemberAccount(MemberQueryForm form);

}
